package cn.wangyu.msblogadmin.admin.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wangyu
 * @version 1.0
 * @date 2021/9/4 23:56
 */
public class AdminVo {

    public interface AdminUpdate{}
    public interface AdminInsert{}

    @NotNull(message = "id不能为空",groups = {AdminUpdate.class})
    private Long id;

    @NotBlank(message = "账号不能为空",groups = {AdminInsert.class})
    private String userName;

    @NotBlank(message = "密码不能为空",groups = {AdminInsert.class})
    private String password;

    private String email;

    private String gender;

    private String summary;

    private String [] roleArray;
}
